//---------------------------------------------------------------------------
//
// Name:        ShutdownFrm.h
// Author:      gnapin
// Created:     16/10/2005 15:16:05
// Description: 
//
//---------------------------------------------------------------------------

#ifndef __SHUTDOWNFRM_h__
#define __SHUTDOWNFRM_h__

#ifdef __BORLANDC__
	#pragma hdrstop
#endif

#ifndef WX_PRECOMP
	#include <wx/wx.h>
	#include <wx/frame.h>
#else
	#include <wx/wxprec.h>
#endif

//Do not add custom headers
//wxDev-C++ designer will remove them
////Header Include Start
#include <wx/timer.h>
#include <wx/button.h>
#include <wx/stattext.h>
#include <wx/spinctrl.h>
#include <wx/statbox.h>
#include <wx/panel.h>
////Header Include End

////Dialog Style Start
#undef ShutdownFrm_STYLE
#define ShutdownFrm_STYLE wxCAPTION | wxSYSTEM_MENU | wxSTAY_ON_TOP | wxMINIMIZE_BOX | wxCLOSE_BOX
////Dialog Style End

class ShutdownFrm : public wxFrame
{
	private:
		DECLARE_EVENT_TABLE();
		
	public:
		ShutdownFrm(wxWindow *parent, wxWindowID id = 1, const wxString &title = wxT("Shutdown"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = ShutdownFrm_STYLE);
		virtual ~ShutdownFrm();
		
	public:
		//Do not add custom control declarations
		//wxDev-C++ will remove them. Add custom code after the block.
		////GUI Control Declaration Start
		wxTimer *MonTimer;
		wxStaticText *Licence;
		wxButton *Stop;
		wxButton *Start;
		wxStaticText *Second_Text;
		wxSpinCtrl *Second;
		wxStaticText *Minute_Text;
		wxSpinCtrl *Minute;
		wxStaticText *Hour_Text;
		wxSpinCtrl *Hour;
		wxStaticBox *WxStaticBox1;
		wxPanel *WxPanel1;
		////GUI Control Declaration End
		
	public:
		//Note: if you receive any error with these enum IDs, then you need to
		//change your old form code that are based on the #define control IDs.
		//#defines may replace a numeric value for the enum names.
		//Try copy and pasting the below block in your old form header files.
		enum
		{
			////GUI Enum Control ID Start
			ID_WXTIMER = 1013,
			ID_LICENCE = 1012,
			ID_START = 1010,
			ID_SECOND_TEXT = 1008,
			ID_SECOND = 1007,
			ID_MINUTE_TEXT = 1006,
			ID_MINUTE = 1005,
			ID_HOUR_TEXT = 1004,
			ID_HOUR = 1003,
			ID_WXSTATICBOX1 = 1002,
			ID_WXPANEL1 = 1001,
			////GUI Enum Control ID End
			ID_DUMMY_VALUE_ //don't remove this value unless you have other enum values
		};
		
	public:
		void ShutdownFrmClose(wxCloseEvent& event);
		void CreateGUIControls(void);
	void StopClick(wxCommandEvent& event);
	void StartClick(wxCommandEvent& event);
	void MonTimerTimer(wxTimerEvent& event);
};

#endif
